commit | 8393b3ca1e8d1aa9b3443a73c814b1298eed2738 | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Thu May 09 20:06:06 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu May 09 20:06:06 2024 +0000 |
tree | 3ccd035f8d02666edd7776476ca4ece33bd8238f | |
parent | 9ecffb41635b203ab0a5421be052794047654253 [diff] | |
parent | c2b25bda527f142a7c5acd8a46b8eb4ea827d12f [diff] |
Update Android.bp by running cargo_embargo am: c2b25bda52 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/document-features/+/3080426 Change-Id: I76e8d5f05d3c85e08c01f14377407f8cc343444a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This crate provides a macro that extracts documentation comments from Cargo.toml
To use this crate, add #![doc = document_features::document_features!()]
in your crate documentation. The document_features!()
macro reads your Cargo.toml
file, extracts feature comments and generates a markdown string for your documentation.
Use ##
and #!
comments in your Cargo.toml to document features, for example:
[dependencies] document-features = "0.2" ## ... [features] ## The foo feature enables the `foo` functions foo = [] ## The bar feature enables the [`bar`] module bar = [] #! ### Experimental features #! The following features are experimental ## Activate the fusion reactor fusion = []
These comments keep the feature definition and documentation next to each other, and they are then rendered into your crate documentation.
Check out the documentation for more details.
Contributions are welcome. We accept pull requests and bug reports.
MIT OR Apache-2.0